package com.boolib.animate.commons.base.face;

import org.springframework.transaction.annotation.Transactional;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author nier
 * @create 2020-02-19 18:22
 */

public interface BaseSqlDeleteService<T> {
    @Transactional
    void deleteById(Long id);

    @Transactional
    void delete(T t);

    @Transactional
    void deleteByExample(Example example);

    @Transactional
    void deleteByBatch(List<Long> ids);






    @Transactional
    void deleteSoftById(Long id);

    @Transactional
    void deleteSoft(T t);

    @Transactional
    void deleteSoftByExample(Example example);

    @Transactional
    void deleteSoftByBatch(List<Long> ids);

    @Transactional
    T updateById(Long id, T t);
}
